home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3714 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: bcfreenet.seflin.lib.fl.us!bcfreenet!z007400b
  2. From: z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: text file manipulation
  5. Date: 30 Jan 1996 19:02:17 GMT
  6. Organization: SEFLIN Free-Net - Broward
  7. Message-ID: <4elpvp$h9u@bcfreenet.seflin.lib.fl.us>
  8. References: <4e6su7$6pu@paperboy.ids.net>
  9. NNTP-Posting-Host: bcfreenet.seflin.lib.fl.us
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. scarney (scarney@conan.ids.net) wrote:
  13.  
  14. : Another stupid question...
  15.  
  16. : I'm trying to write a little program to modify the /etc/passwd 
  17. : file...I'm curious how you take a line in a text file (like passwd) and 
  18. : change it. Does fwrite append, or if the file index is in the middle of 
  19. : the file will it overwrite whatever is there (i.e., do what I want to do 
  20. : with the file). If not, could you use the FILE pointer to change the data?
  21.  
  22. : Thanks.
  23.  
  24. : --Seth
  25.  
  26.  
  27. --
  28. **********begin r.s. response*********
  29.  
  30.     this is in a unix,
  31.     or at least,  a
  32.     unix like os,
  33.     such as linux,
  34.     is it not?
  35.  
  36.     this file is critical to
  37.         system operation
  38.     and should not be modified in
  39.     the manner suggested!!!!!!!!!!!
  40.     
  41.  
  42. **********end r.s. response***********
  43. Ralph Silverman
  44. z007400b@bcfreenet.seflin.lib.fl.us
  45.  
  46.